package com.ocom.common.response.payconfig;


import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class OrderSummaryVo {

    List<MealList> mealList = new ArrayList<>();
    List<DishesList> dishesList = new ArrayList<>();
    List<FoodstuffList> foodstuffList = new ArrayList<>();

    @Data
    public static class MealList {
        /**
         * mealDate	就餐日期日期	string
         * mealNo	餐段编号	int
         * mealName	餐段名	string
         * dishesData	菜品数据	复合域数组
         * foodData	食材数据	复合域数组
         */
        String mealDate;
        Integer mealNo;
        String mealName;
        List<DishesData> dishesData=new ArrayList<>();
        List<FoodData> foodData=new ArrayList<>();

    }


    @Data
    public static class DishesData {
        /**
         * dishesId	菜品编号	int
         * priceMode	计价方式	int	11：按重量（50g）；20：例；21：小；22：中；23：大
         * orderNumber	订单数量	int
         */
        Integer dishesId;
        Integer priceMode;
        Integer orderNumber;
    }

    @Data
    public static class FoodData {
        /**
         * foodstuffId	食材编号	int
         * requiredNumber	需求数量	int
         */
        Integer foodstuffId;
        Integer requiredNumber;
    }

    @Data
    public static class DishesList {
        /**
         * dishesId	菜品编号	int
         * dishesName	菜品名称	string
         */
        Integer dishesId;
        String dishesName;
        Integer sort;
        Integer classParent;
        Integer classSort;
    }

    @Data
    public static class FoodstuffList {
        /**
         * foodstuffId	食材编号	int
         * foodstuffName	食材名称	string
         */
        Integer foodstuffId;
        String foodstuffName;
    }
}
